<template>
  <van-nav-bar title="购物车" />
  <van-swipe-cell>
    <van-card
      num="2"
      price="2.00"
      desc="描述信息"
      title="商品标题"
      class="goods-card"
      thumb="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
    />
    <template #right>
      <van-button square text="删除" type="danger" class="delete-button" style="height: 100%;"/>
    </template>
  </van-swipe-cell>

  <van-submit-bar :price="3050" button-text="提交订单" @submit="onSubmit">
  <van-checkbox v-model="checked">全选</van-checkbox>
</van-submit-bar>

</template>

<script setup>
import {ref} from 'vue'
import { useRouter } from 'vue-router';
let router=new useRouter()

let usercarts=ref([])
const onSubmit=()=>{
    router.push('/ding')
}
</script>

<style lang="scss" scoped></style>
